<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>File Source for tuto2.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
											</head>
		<body>
						<h1>Source for file tuto2.php</h1>
<p>Documentation is available at <a href="../DomBase/_libsPub---FPDF---tutorial---tuto2.php.html">tuto2.php</a></p>
<div class="src-code">
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php</span></div></li>
<li><div class="src-line"><a name="a2"></a>require<span class="src-sym">(</span><span class="src-str">'../fpdf.php'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a4"></a><span class="src-key">class&nbsp;</span><a href="../DomBase/PDF.html">PDF</a>&nbsp;<span class="src-key">extends&nbsp;</span><a href="../DomBase/FPDF.html#methodFPDF">FPDF</a></div></li>
<li><div class="src-line"><a name="a5"></a><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a6"></a><span class="src-comm">//Page&nbsp;header</span></div></li>
<li><div class="src-line"><a name="a7"></a><span class="src-key">function&nbsp;</span><a href="../DomBase/PDF.html#methodHeader">Header</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a8"></a><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a9"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//Logo</span></div></li>
<li><div class="src-line"><a name="a10"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomBase/FPDF.html#methodImage">Image</a><span class="src-sym">(</span><span class="src-str">'logo_pb.png'</span><span class="src-sym">,</span><span class="src-num">10</span><span class="src-sym">,</span><span class="src-num">8</span><span class="src-sym">,</span><span class="src-num">33</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a11"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//Arial&nbsp;bold&nbsp;15</span></div></li>
<li><div class="src-line"><a name="a12"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomBase/FPDF.html#methodSetFont">SetFont</a><span class="src-sym">(</span><span class="src-str">'Arial'</span><span class="src-sym">,</span><span class="src-str">'B'</span><span class="src-sym">,</span><span class="src-num">15</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a13"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//Move&nbsp;to&nbsp;the&nbsp;right</span></div></li>
<li><div class="src-line"><a name="a14"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomBase/FPDF.html#methodCell">Cell</a><span class="src-sym">(</span><span class="src-num">80</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a15"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//Title</span></div></li>
<li><div class="src-line"><a name="a16"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomBase/FPDF.html#methodCell">Cell</a><span class="src-sym">(</span><span class="src-num">30</span><span class="src-sym">,</span><span class="src-num">10</span><span class="src-sym">,</span><span class="src-str">'Title'</span><span class="src-sym">,</span><span class="src-num">1</span><span class="src-sym">,</span><span class="src-num">0</span><span class="src-sym">,</span><span class="src-str">'C'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a17"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//Line&nbsp;break</span></div></li>
<li><div class="src-line"><a name="a18"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomBase/FPDF.html#methodLn">Ln</a><span class="src-sym">(</span><span class="src-num">20</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a19"></a><span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a20"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a21"></a><span class="src-comm">//Page&nbsp;footer</span></div></li>
<li><div class="src-line"><a name="a22"></a><span class="src-key">function&nbsp;</span><a href="../DomBase/PDF.html#methodFooter">Footer</a><span class="src-sym">(</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a23"></a><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a24"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//Position&nbsp;at&nbsp;1.5&nbsp;cm&nbsp;from&nbsp;bottom</span></div></li>
<li><div class="src-line"><a name="a25"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomBase/FPDF.html#methodSetY">SetY</a><span class="src-sym">(</span>-<span class="src-num">15</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a26"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//Arial&nbsp;italic&nbsp;8</span></div></li>
<li><div class="src-line"><a name="a27"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomBase/FPDF.html#methodSetFont">SetFont</a><span class="src-sym">(</span><span class="src-str">'Arial'</span><span class="src-sym">,</span><span class="src-str">'I'</span><span class="src-sym">,</span><span class="src-num">8</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a28"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//Page&nbsp;number</span></div></li>
<li><div class="src-line"><a name="a29"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomBase/FPDF.html#methodCell">Cell</a><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">,</span><span class="src-num">10</span><span class="src-sym">,</span><span class="src-str">'Page&nbsp;'</span>.<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomBase/FPDF.html#methodPageNo">PageNo</a><span class="src-sym">(</span><span class="src-sym">)</span>.<span class="src-str">'/{nb}'</span><span class="src-sym">,</span><span class="src-num">0</span><span class="src-sym">,</span><span class="src-num">0</span><span class="src-sym">,</span><span class="src-str">'C'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a30"></a><span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a31"></a><span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a32"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a33"></a><span class="src-comm">//Instanciation&nbsp;of&nbsp;inherited&nbsp;class</span></div></li>
<li><div class="src-line"><a name="a34"></a><span class="src-var">$pdf</span>=<span class="src-key">new&nbsp;</span><span class="src-id"><a href="../DomBase/PDF.html">PDF</a></span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a35"></a><span class="src-var">$pdf</span><span class="src-sym">-&gt;</span><a href="../DomBase/FPDF.html#methodAliasNbPages">AliasNbPages</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a36"></a><span class="src-var">$pdf</span><span class="src-sym">-&gt;</span><a href="../DomBase/FPDF.html#methodAddPage">AddPage</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a37"></a><span class="src-var">$pdf</span><span class="src-sym">-&gt;</span><a href="../DomBase/FPDF.html#methodSetFont">SetFont</a><span class="src-sym">(</span><span class="src-str">'Times'</span><span class="src-sym">,</span><span class="src-str">''</span><span class="src-sym">,</span><span class="src-num">12</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a38"></a><span class="src-key">for</span><span class="src-sym">(</span><span class="src-var">$i</span>=<span class="src-num">1</span><span class="src-sym">;</span><span class="src-var">$i</span>&lt;=<span class="src-num">40</span><span class="src-sym">;</span><span class="src-var">$i</span>++<span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a39"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$pdf</span><span class="src-sym">-&gt;</span><a href="../DomBase/FPDF.html#methodCell">Cell</a><span class="src-sym">(</span><span class="src-num">0</span><span class="src-sym">,</span><span class="src-num">10</span><span class="src-sym">,</span><span class="src-str">'Printing&nbsp;line&nbsp;number&nbsp;'</span>.<span class="src-var">$i</span><span class="src-sym">,</span><span class="src-num">0</span><span class="src-sym">,</span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a40"></a><span class="src-var">$pdf</span><span class="src-sym">-&gt;</span><a href="../DomBase/FPDF.html#methodOutput">Output</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a41"></a><span class="src-php">?&gt;</span></div></li>
</ol></div>
</div>
	<p class="notes" id="credit">
		Documentation generated on Fri, 24 Sep 2010 21:15:30 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</body>
</html>